﻿using System;

namespace SharpSqlAnalyzer.nodes
{
	// Token: 0x020002EA RID: 746
	public class TGroupingExpressionItem : TParseTreeNode
	{
		// Token: 0x06001A42 RID: 6722 RVA: 0x0032DBC5 File Offset: 0x0032BDC5
		public override void init(object arg1)
		{
			if (arg1 is TExpression)
			{
				this.expr = (TExpression)arg1;
				return;
			}
			if (arg1 is TExpressionList)
			{
				this.exprList = (TExpressionList)arg1;
			}
		}

		// Token: 0x06001A43 RID: 6723 RVA: 0x0032DBF0 File Offset: 0x0032BDF0
		public override void doParse(TCustomSqlStatement psql, ESqlClause plocation)
		{
			if (this.expr != null)
			{
				this.expr.doParse(psql, plocation);
				return;
			}
			if (this.exprList != null)
			{
				this.exprList.doParse(psql, plocation);
			}
		}

		// Token: 0x170005DB RID: 1499
		// (get) Token: 0x06001A44 RID: 6724 RVA: 0x0032DC1D File Offset: 0x0032BE1D
		public virtual TExpression Expr
		{
			get
			{
				return this.expr;
			}
		}

		// Token: 0x170005DC RID: 1500
		// (get) Token: 0x06001A45 RID: 6725 RVA: 0x0032DC25 File Offset: 0x0032BE25
		public virtual TExpressionList ExprList
		{
			get
			{
				return this.exprList;
			}
		}

		// Token: 0x06001A46 RID: 6726 RVA: 0x0032DC2D File Offset: 0x0032BE2D
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06001A47 RID: 6727 RVA: 0x0032DC3D File Offset: 0x0032BE3D
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x04001995 RID: 6549
		private TExpression expr;

		// Token: 0x04001996 RID: 6550
		private TExpressionList exprList;
	}
}
